# $Id: PKGBUILD 65763 2012-02-22 12:20:24Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-danga-socket
pkgver=1.61
pkgrel=3
pkgdesc="Perl/CPAN Module Danga::Socket"
arch=("any")
url="http://search.cpan.org/dist/Danga-Socket/"
license=("GPL" "PerlArtistic")
depends=("perl-sys-syscall")
source=("http://search.cpan.org/CPAN/authors/id/B/BR/BRADFITZ/Danga-Socket-$pkgver.tar.gz")
md5sums=('dc8f481b35172a090b977f3dea7fa24a')

build() {
  cd $srcdir/Danga-Socket-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
  make pure_install doc_install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
